package com.xnyzc.lhy.mis.service.activity;

import com.xnyzc.lhy.mis.entity.activity.OaSysActivityPeriod;
import com.xnyzc.lhy.mis.entity.activity.OaSysActivityReward;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xnyzc.lhy.mis.entity.result.activity.ActivityRewardResult;

import java.util.List;

/**
 * <p>
 * 活动结果 服务类
 * </p>
 *
 * @author haoyfa
 * @since 2019-12-16
 */
public interface IOaSysActivityRewardService extends IService<OaSysActivityReward> {
    /**
     * 根据活动周期id获取活动奖励结果result
     * @param periodId
     * @return
     */
    List<ActivityRewardResult> queryActivityRewardResultList(String periodId);

    /**
     * 根据活动周期id获取活动奖励结果
     * @param periodId
     * @return
     */
    List<OaSysActivityReward> queryActivityRewardList(Long periodId);

    /**
     * 创建活动奖励结果
     * @param
     * @return
     */
    List<OaSysActivityReward> createActivityReward(OaSysActivityPeriod oaSysActivityPeriod, String cityIds, Integer withinDate);

    /**
     * 结算司机奖励
     * @param oaSysActivityRewardList
     */
    void calDriverReward(List<OaSysActivityReward> oaSysActivityRewardList);
}
